package com.zsh.demo.dao;

import com.zsh.demo.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.management.Query;
import java.util.List;

@Repository
public interface UserDao {
    public User findByUser(@Param("username") String username,@Param("password") String password);
    public List<User> getAllUser(@Param("username") String username,@Param("pageStart") Integer pageStart,@Param("pageSize") Integer pageSize);
    public Integer getUserCounts(@Param("username") String username);
    public Integer updateState(@Param("id") Integer id,@Param("state") Boolean state);
    public Integer addUser(User user);
    public Integer deleteUser(@Param("id") Integer id);
    public User getUser(Integer id);
    public Integer updateUser(User user);

}
